﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VideoEdit.aspx.cs" Inherits="Web.SysManage.Video.VideoEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
    <link href="../css/adminlist.css" rel="stylesheet" type="text/css" />
    <link href="../css/admininfo.css" rel="stylesheet" type="text/css" />
    <link href="../css/layer.css" rel="stylesheet" type="text/css" />
    <link href="../css/enmu.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/commonV2.js"></script>
    <script type="text/javascript" src="../Common/common.aspx"></script>
    <script type="text/javascript" src="../js/jquery.1.3.2.js"></script>
    <script type="text/javascript" src="../js/jquery.form.js"></script>
    <script type="text/javascript" src="../Common/AllCategories.aspx"></script>
    <script type="text/javascript" src="../js/newscommon.js"></script>
    <script type="text/javascript" src="../js/enmu.js"></script>
    <script type="text/javascript" src="../js/layer.js"></script>
    <script type="text/javascript" src="../js/MenuDiv.js"></script>
    <script type="text/javascript" src="../js/newsadd.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="hVideoID" name="hVideoID" runat="server" />
    <QX:AjaxDiv ID="AjaxDiv1" runat="server" />
    <div class="page_title" style="margin-bottom: 5px;">
        <asp:LinkButton ID="lbtnSave" runat="server">
            <img src="../images/icon/save.gif" alt="保存" /> 保存
        </asp:LinkButton>
        <a href="javascript:GoTo();" class="tnew" onmouseover="this.className='tnew nbg'"
            onmouseout="this.className='tnew'" onclick="javascript:window.history.back();">
            <img src="../images/icon/5.gif" alt="取消" />取消 </a><a href="javascript:GoTo();" class="tnew"
                onmouseover="this.className='tnew nbg'" onmouseout="this.className='tnew'" onclick="refinsh();">
                <img src="../images/icon/07.gif" alt="刷新" />刷新 </a>
    </div>
    <div class="g-tabnav">
        <a style="margin-left: -13px;"></a><a id="a1" onclick="SetFromsByNum('a1')">基本信息</a>
        <a id="a2" onclick="SetFromsByNum('a2')">详细内容</a>
    </div>
    <div id="a1_from">
        <div class="Page_arrb arb_pr1">
            <span class="p_a_t1">资讯标题：</span>
            <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="iTitle"
                Display="Dynamic" ErrorMessage="<div style='bgcolor:#BBB'><img src='../images/post_err.gif'>资讯标题内容，不能为空</div>"></asp:RequiredFieldValidator>
            <input id="iTitle" runat="server" type="text" class="itxt1" onfocus="this.className='itxt2'"
                style="width: 400px;" onblur="CheckValueIsNull('iTitle','titlemsg');" />
            <span class="info1" id="titlemsg">资讯标题内容，不能为空</span>
        </div>
        
        <div class="Page_arrb arb_pr1">
            <span class="p_a_t1 lfl">视频类别： </span><span class="p_a_t1 lfl">
                <div class="cagegoriesSelect">
                    <select id="selVideoType" runat="server">
                    </select>
                </div>
            </span><span class="info1" id="classmsg" style="margin-left: 210px;">资讯所属的分类，不能为空</span>
        </div>
        <div class="Page_arrb arb_pr1">
            <span class="p_a_t1">发布人：</span>
            <input id="iAuthor" runat="server" type="text" class="itxt1" onfocus="this.className='itxt2'"
                onblur="CheckValueIsNull('iAuthor','autmsg');" />
            <span class="info1" id="autmsg">发布人，能为空</span>
        </div>
        <div class="Page_arrb arb_pr1">
            <span class="p_a_t1">是否付费：</span>
            <input type="radio" id="rNeedScoreY" name="rNeedScore" value="1" runat="server" onclick="$('#divNeedScore').show()" />
            是
            <input type="radio" id="rNeedScoreN" name="rNeedScore" value="2" runat="server" onclick="$('#divNeedScore').hide()" />
            否
        </div>
        <div id="divNeedScore" runat="server" class="Page_arrb arb_pr1">
            <span class="p_a_t1">所需铜钱：</span>
            <input id="iScore" runat="server" type="text" class="itxt1" onfocus="this.className='itxt2'"
                style="width: 400px;" />
        </div>
        <div class="Page_arrb arb_pr1">
            <input type="file" name="iFile" class="itxt1" onfocus="this.className='itxt2'" />
            <img src="../images/icon/fj.gif" alt="上传图片" />
            <a href="javascript:GoTo();" onclick="SelectBigImg(this)">上传图片</a>
        </div>
    </div>
    <div id="a2_from">
        <div class="Page_arrb arb_pr1">
            <script type="text/javascript" charset="gb2312" src="../KindEditer/kindeditor-min.js"></script>
            <script type="text/javascript">
                KE.show({
                    id: 'taContent',
                    imageUploadJson: '/manage/upload/Uploadfiles.aspx',
                    fileManagerJson: '/manage/upload/FileManager.aspx',
                    allowFileManager: true,
                    afterCreate: function (id) {
                        KE.event.ctrl(document, 13, function () {
                            KE.util.setData(id);
                            document.forms['form1'].submit();
                        });
                        KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
                            KE.util.setData(id);
                            document.forms['form1'].submit();
                        });
                    }
                });
            </script>
            <textarea id="taContent" cols="100" rows="8" style="width: 800px; height: 300px;
                visibility: hidden;" runat="server"></textarea>
        </div>
    </div>
    <div class="dobtn arb_pr1 Page_arrb" style="margin-top: 5px;">
        <asp:Button ID="btnSave" runat="server" CssClass="btn2 bold" Text="确定" />
        <input type="reset" class="btn2" value="取消" />
    </div>
    <script type="text/javascript">
        SetFromsByNum("a1");
    </script>
    </form>
</body>
</html>
